<html>
<head>
<title>MBIE Web Services Help</title>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="services.css"/>
</head>
<body>
<h1>Help</h1>

<h2>PPSR</h2>
<p>You need to use "application/x-www-form-urlencoded" instead of "multipart/form-data" in .net coding</p>
<pre>try
{
    stringrequestData = "p_xml_file=";
    using(System.IO.StreamReaderreader = newSystem.IO.StreamReader(@"C:\test.xml"))
    {
        requestData += reader.ReadToEnd();
    }
    byte[] byteData = System.Text.Encoding.UTF8.GetBytes(requestData);

    System.Net.HttpWebRequestrequest = (System.Net.HttpWebRequest)System.Net.WebRequest.Create("https://xml.eat.g2b.govt.nz/ppsr-xml/gateway.svt");
    varcert = newSystem.Security.Cryptography.X509Certificates.X509Certificate2(@"C:\G2B_Client_Package.PFX", "ppsr201");
    request.ClientCertificates.Add(cert);
    request.Method = "POST";
    request.KeepAlive = true;
    request.ContentType = "application/x-www-form-urlencoded";
    request.ContentLength = byteData.Length;

    System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate{ returntrue; };

    using(varstream = request.GetRequestStream())
    {
        stream.Write(byteData, 0, byteData.Length);
    }

    using(varrespone = request.GetResponse())
    using(varstream = respone.GetResponseStream())
    {
        stringresponeData = newSystem.IO.StreamReader(stream).ReadToEnd();
    }
}
catch(Exceptionex)
{
}
</pre>
<h2>Companies Search</h2>
<table id="characters">
<caption>List of Permitted Characters for Searching</caption>
<thead>
<tr><th>Value</th><th>Description	</th><th>Hex conversion</th></tr>
</thead><tbody>
<tr><td>A - Z	</td><td>&nbsp;	</td><td> </td></tr>
<tr><td>0 - 9	</td><td>&nbsp;</td><td></td></tr>
<tr><td>&nbsp;	</td><td>Blank	</td><td>%20</td></tr>
<tr><td>!	</td><td>Exclamation mark	</td><td>%21</td></tr>
<tr><td>"	</td><td>Double quote	</td><td>%22</td></tr>
<tr><td>#	</td><td>Hash	</td><td>%23</td></tr>
<tr><td>$	</td><td>Dollar sign	</td><td>%24</td></tr>
<tr><td>%	</td><td>Percentage sign	</td><td>%25</td></tr>
<tr><td>&	</td><td>Ampersand	</td><td>%26</td></tr>
<tr><td>'	</td><td>Single quote	</td><td>%27</td></tr>
<tr><td>(	</td><td>Open bracket	</td><td>%28</td></tr>
<tr><td>)	</td><td>Close bracket	</td><td>%29</td></tr>
<tr><td>*	</td><td>Asterisk	</td><td>%2A</td></tr>
<tr><td>+	</td><td>Plus sign	</td><td>%2B</td></tr>
<tr><td>,	</td><td>Comma	</td><td>%2C</td></tr>
<tr><td>-	</td><td>Dash (minus sign)</td><td>&nbsp;</td></tr>
<tr><td>.	</td><td>Dot (period)	</td><td>&nbsp;</td></tr>
<tr><td>/	</td><td>Forward slash	</td><td>%2F</td></tr>
<tr><td>:	</td><td>Colon	</td><td>%3A</td></tr>
<tr><td>;	</td><td>Semi-colon	</td><td>%3B</td></tr>
<tr><td><	</td><td>Less than sign	</td><td>%3C</td></tr>
<tr><td>>	</td><td>Greater than sign	</td><td>%3E</td></tr>
<tr><td>=	</td><td>Equal sign	</td><td>%3D</td></tr>
<tr><td>?	</td><td>Question mark	</td><td>%3F</td></tr>
<tr><td>@	</td><td>At sign	</td><td>%40</td></tr>
<tr><td>[	</td><td>Open square bracket	</td><td>%5B</td></tr>
<tr><td>]	</td><td>Close square bracket	</td><td>%5D</td></tr>
<tr><td>\	</td><td>Back slash	</td><td>%5C</td></tr>
<tr><td>^	</td><td>Caret	</td><td>%5E</td></tr>
<tr><td>_	</td><td>Underscore	</td><td>&nbsp;</td></tr>
<tr><td>`	</td><td>Grave accent	</td><td>%60</td></tr>
<tr><td>{	</td><td>Open curly bracket	</td><td>%7B</td></tr>
<tr><td>}	</td><td>Close curly bracket	</td><td>%7D</td></tr>
<tr><td>|	</td><td>Pipe	</td><td>%7C</td></tr>
<tr><td>~	</td><td>tilde	</td><td>&nbsp;</td></tr>
</tbody>
</table>

<table  id="entity_values">
<caption>Entity Status Values</caption>
<thead>
<tr><th>Parameter Value</th><th>Description</th></tr>
</thead><tbody>
<tr><td>2</td><td>Refused</td></tr>
<tr><td>3</td><td>Already On the Register</td></tr>
<tr><td>4</td><td>Similar Name On Register</td></tr>
<tr><td>5</td><td>Similar To Approved Name</td></tr>
<tr><td>6</td><td>Name Already Approved</td></tr>
<tr><td>7</td><td>Refusal Other</td></tr>
<tr><td>8</td><td>Prohibited Name</td></tr>
<tr><td>20</td><td>Withdrawn Approval</td></tr>
<tr><td>30</td><td>Consent Required</td></tr>
<tr><td>33</td><td>Other Consent</td></tr>
<tr><td>34</td><td>Pending Restoration</td></tr>
<tr><td>35</td><td>Awaiting Registration</td></tr>
<tr><td>36</td><td>Awaiting Registration Hold</td></tr>
<tr><td>37</td><td>Pre Pending</td></tr>
<tr><td>38</td><td>Deleted - Incorporation</td></tr>
<tr><td>40</td><td>Reserved</td></tr>
<tr><td>41</td><td>Under Inc With Client</td></tr>
<tr><td>42</td><td>Inc Submitted By Client</td></tr>
<tr><td>43</td><td>Pending Consent Correctn</td></tr>
<tr><td>44</td><td>Under Inc With B&amp;Rb</td></tr>
<tr><td>45</td><td>Awaiting Consent Hold</td></tr>
<tr><td>46</td><td>Pending Registration</td></tr>
<tr><td>47</td><td>Pending - Incorporation</td></tr>
<tr><td>48</td><td>Pending Hold</td></tr>
<tr><td>49</td><td>Expired - Incorporation</td></tr>
<tr><td>50</td><td>Registered</td></tr>
<tr><td>55</td><td>Voluntary Administration</td></tr>
<tr><td>56</td><td>Voluntary Administration & In Rec</td></tr>
<tr><td>57</td><td>In Receivership & In Voluntary Administration</td></tr>
<tr><td>60</td><td>In Liq</td></tr>
<tr><td>61</td><td>In Liq and Rec</td></tr>
<tr><td>62</td><td>Struck Off & In Liq.</td></tr>
<tr><td>63</td><td>In Receivership & In Liquidation & In Voluntary Administration</td></tr>
<tr><td>64</td><td>In Liquidation & In Receivership & In Voluntary Administration</td></tr>
<tr><td>65</td><td>In Liquidation & Voluntary Administration</td></tr>
<tr><td>66</td><td>In Liquidation & Voluntary Administration & In Receivership</td></tr>
<tr><td>70</td><td>In Rec</td></tr>
<tr><td>71</td><td>In Rec. & In Liq.</td></tr>
<tr><td>72</td><td>In Statutory Mgmt.</td></tr>
<tr><td>73</td><td>In Admin.</td></tr>
<tr><td>80</td><td>Struck Off</td></tr>
</tbody>
</table>

<table id="body_type">
<caption>List of All Entity Body Type Values</caption>
<thead><tr><th>Parameter Value</th><th>Description</th></tr></thead>
<tbody>
<tr><td>LTD</td><td>Limited Company</td></tr>
<tr><td>UNLTD</td><td>UnLimited Company</td></tr>
<tr><td>ASIC</td><td>Australian Company</td></tr>
<tr><td>NON_ASIC</td><td>Overseas (non Australian) Company</td></tr>
<tr><td>COOP</td><td>Co-operative Company</td></tr>
</tbody>
</table>

<table id="maori">
<caption>Only M&#257;ori diacritics are accepted</caption>
<thead>
<tr><th>Value</th><th>Diacritics and M&#257;ori macrons</th><th>Hex conversion</th></tr>
</thead>
<tbody>
<tr><td>&#257;</td><td>	a latin small letter a with macron</td><td>	u0101</td></tr>
<tr><td>&#258;</td><td>	A latin capital letter a with breve</td><td>	u0102</td></tr>
<tr><td>&#274;</td><td>	E latin capital letter e with macron</td><td>	u0112</td></tr>
<tr><td>&#275;</td><td>	e latin small letter e with macron</td><td>	u0113</td></tr>
<tr><td>&#298;</td><td>	I latin capital letter i with macron</td><td>	u012A</td></tr>
<tr><td>&#299;</td><td>	i latin small letter i with macron</td><td>	u012B</td></tr>
<tr><td>&#332;</td><td>	O latin capital letter o with macron</td><td>	u014C</td></tr>
<tr><td>&#333;</td><td>	o latin small letter o with macron</td><td>	u014D</td></tr>
<tr><td>&#362;</td><td>	U latin capital letter u with macron</td><td>	u016A</td></tr>
<tr><td>&#363;</td><td>	u latin small letter u with macron</td><td>	u016B</td></tr>
</tbody>
</table>


</body>
</html>